package com.common.validator;

import com.common.util.StringUtil;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;


/**
 * @author zdh
 */
public class CustomNotEmptyConstraintValidator implements ConstraintValidator<CustomNotEmpty, String> {

    @Override
    public boolean isValid(String value, ConstraintValidatorContext context) {
        return !StringUtil.isNullOrEmpty(value);
    }
}
